// js 与强类型语言不一样的地方
const runner = ['张三', 123, 5.5, 5, 3, 6, 35]
// 名字， 号码，余下所有的成绩
//...   rest 运算符
// const [name, number, ...runs] = runner; //解构
// console.log(name, number, runs);



const team = ['Wes', 'Kait', 'Lux', 'Sheena', 'Kelly'];
const [captain, assistant, ...players] = team;
console.log(captain, assistant, players);
console.log(players, ...players);